<?php require 'gauche.tpl.php';?>

	<div id="content">
		<div>
			<h2><?php echo $titre?></h2>
			<fieldset>
			<legend><?php echo $fieldSet1?></legend>
			<ul>
			<?php foreach ($filtres as $filtre) {?>
			    <li class="puce"><?php echo $filtre['filtre_nom']?><img class="delete" id="edit_<?php echo $filtre['filtre_id']?>" src="<?php echo $baseUri?>images/edit.png" alt="edit" title="modifier l'élément" /> <img class="delete" id="delete_<?php echo $filtre['filtre_id']?>" src="<?php echo $baseUri?>images/Garbage-Closed.png" alt="delete" title="supprimer l'élément" /></li>
			<?php }?> 
			    <li class="puce"><a href="#" id="addRessourceLink" title="Cliquer ici pour ajouter un élement">Ajouter un élément</a></li>
			</ul>
			</fieldset>
<div id="addRessource" class="boiteModale">
<h2>Ajouter un élément</h2>
			<form action="" method="post">
			<fieldset>
			<legend><?php echo $fieldSet1?></legend>
			<p>
			    <label for="frm_nom">Nom</label><input type="text" name="frm_nom" size="50"/>
		    </p>
			<p>
			    <input type="hidden" name="frm_tanks" size="100"/>
		    </p>
		    <div id="blocSelectionTank">
		    <p class="filtres">
			    <label for="frm_categorie">Catégorie</label>
			    <select multiple="multiple" size="10" name="frm_categorie[]">
			    <option value="null">aucune</option>
			    <?php foreach ($events as $event) {?>
			    <option value="<?php echo $event['event_id']?>"><?php echo $event['nom']?></option>
			    <?php } ?>
			    </select>
			</p>
			
		    <fieldset id="CharsSelect">
		        <legend>Chars</legend>
		        <div id="SelectedTanks"></div>
		    </fieldset>
		    </div>
			</fieldset>
			<fieldset>
			     <legend>Sélectionner des chars</legend>
			     <fieldset id="filtres_tank">
			         <legend>Filtres</legend>
			         <ul class="ligne">
			             <li><span class="icone_type heavy" id="heavyTank"> </span></li>
			             <li><span class="icone_type med" id="mediumTank"> </span></li>
			             <li><span class="icone_type light" id="lightTank"> </span></li>
			             <li><span class="icone_type td" id="AT-SPG"> </span></li>
			             <li><span class="icone_type spg" id="SPG"> </span></li>
			         </ul>
			         <ul class="ligne">
                        <li><span class="tiers" id="t1">I</span></li>
                        <li><span class="tiers" id="t2">II</span></li>
                        <li><span class="tiers" id="t3">III</span></li>
                        <li><span class="tiers" id="t4">IV</span></li>
                        <li><span class="tiers" id="t5">V</span></li>
                        <li><span class="tiers" id="t6">VI</span></li>
                        <li><span class="tiers" id="t7">VII</span></li>
                        <li><span class="tiers" id="t8">VIII</span></li>
                        <li><span class="tiers" id="t9">IX</span></li>
                        <li><span class="tiers" id="t10">X</span></li>
			         </ul>
		         </fieldset>
			</fieldset>
			<div class="boutons">
			    <input type="reset" value="Annuler" />
			    <input type="submit" value="Enregistrer" />
			</div>
			<input type="hidden" name="frm_id" />
			</form>
</div>
        </div>
	</div>
	<script>var lstTanks = <?php echo $tanks?></script>